projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7474b55
)
Fix display of hollow box cursor on NS
author
Po Lu
<luangruo@yahoo.com>
Sun, 8 May 2022 05:44:28 +0000
(13:44 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Sun, 8 May 2022 05:44:28 +0000
(13:44 +0800)
* src/nsterm.m (ns_draw_window_cursor): Fix verbatim
translations from X.
src/nsterm.m
patch
|
blob
|
history
diff --git
a/src/nsterm.m
b/src/nsterm.m
index fef7f0dc6c8ebc44a9ac1f1cb1bf343547007624..82062033335614e102f532840ef6fb83ff45a120 100644
(file)
--- a/
src/nsterm.m
+++ b/
src/nsterm.m
@@
-3079,7
+3079,9
@@
ns_draw_window_cursor (struct window *w, struct glyph_row *glyph_row,
break;
case HOLLOW_BOX_CURSOR:
draw_phys_cursor_glyph (w, glyph_row, DRAW_NORMAL_TEXT);
- [NSBezierPath strokeRect: r];
+
+ /* This works like it does in PostScript, not X Windows. */
+ [NSBezierPath strokeRect: NSInsetRect (r, 0.5, 0.5)];
break;
case HBAR_CURSOR:
NSRectFill (r);